package com.stellar.circle.controller.admin.sChatMessage;

import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageRequestPageVO;
import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageRequestVO;
import com.stellar.circle.controller.admin.sChatMessage.vo.SChatMessageResponseVO;
import com.stellar.circle.domain.sChatMessage.SChatMessageDomainService;

import com.stellar.web.core.bean.PageResult;
import com.stellar.web.core.bean.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 私聊消息表控制器
 *
 * @author Jqchan
 * @version 1.0
 * @date 2025-06-12 21:21:20
 */
@RequestMapping("/api-admin/sChatMessage")
@RestController("adminSChatMessageController")
@Slf4j
public class SChatMessageController {

    @Resource
    private SChatMessageDomainService sChatMessageDomainService;

    /**
     * 分页查询私聊消息表
     */
    @PostMapping("/page")
    public Result<PageResult<SChatMessageResponseVO>> page(@RequestBody SChatMessageRequestPageVO requestPageVO) {
        return Result.success(sChatMessageDomainService.page(requestPageVO));
    }

}
